package Proxy_Pattern.Log;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Proxy_Logger implements Logger{
    private Write_Logger write_logger=new Write_Logger();
    private Log log;
    public String method() {
        try{
            System.out.println("方法method()被调用 调用时间2017-11-5 10:10:10");
            String result=write_logger.method();
            this.setLog();
            return result;
        }
        catch (Exception e){
            return "失败";

        }

    }
    public void setLog(){
        log=new Log();
        log.Log();
    }
}
